package vlogs

import (
	"orm_gin/apis/vlog"

	"github.com/gin-gonic/gin"
)

func VlogsApi(r *gin.Engine, fc gin.HandlerFunc) {
	vg := r.Group("/vlog")
	{
		vg.GET("", vlog.GetLogs)
		vg.POST("", vlog.AddVlog)
		vg.DELETE("", vlog.DeleteVlog)
		vg.PUT("", vlog.UpdateVlog)
		vg.GET("/all", vlog.GetAllLogs)
	}
}
